Developer --> Technical Publications
PATH Hardware Documentation > Device Managers and Drivers > ATA Devices > ATA Device Software Guide


Control Routine

The ATA driver implements many of the control functions supported by the SCSI hard disk driver and defined in Inside Macintosh: Devices. The ATA disk driver also implements several new functions defined in Designing PCI Cards and Drivers for Power Macintosh Computers. The control functions are listed below and described in ATA Disk Driver Control and Status Functions .

Table 2-2  Control function supported by the ATA disk driver

Value of
csCode

Definition

5 Verify media
6 Format media
7 Eject media
21 Return drive icon
22 Return media icon
23 Return drive characteristics
44 Enable partition as startup partition
45 Enable partition to be mounted
46 Set partition write protected
48 Disable partition mounting
49 Disable partition write protection
60 Mount volume
70 Set power mode


RESULT CODES

noErr

0 Successful completion, no error occurred

controlErr

-17 Unimplemented control function; could not complete requested operation

nsDrvErr

-56 No such drive installed

© 1999 Apple Computer, Inc. — (Last Updated 30 Oct 97)

Previous | Back Up One Level | Next | Show Frames | Hide Frames